package com.cosmoplat.xikai.business.domain.mes.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName MesFinishiTaskRequest
 * @Description 2.17.任务完工与工时汇报接口
 * @Author wdf
 * @Date 2025/1/13
 */
@Data
public class MesFinishTaskRequest {

    @ApiModelProperty(value = "工单信息列表", required = true)
    private List<OrderInfo> data;


    @Data
    public static class OrderInfo {

        /**
         * 派工单ID
         * 派工单ID和派工任务ID不能同时为空
         */
        @ApiModelProperty(value = "派工单ID", required = true, example = "PD001")
        private String orderID;

        /**
         * 派工任务ID
         */
        @ApiModelProperty(value = "派工任务ID", required = true, example = "T001")
        private String taskId;

        /**
         * 执行任务的员工姓名
         * 工号
         */
        @ApiModelProperty(value = "执行任务的员工", required = true, example = "张三")
        private String employee;

        /**
         * 任务相关的数量，例如完成的数量。
         */
        @ApiModelProperty(value = "任务数量", required = true, example = "5")
        private BigDecimal quantity;

        /**
         * 执行任务所需的工时
         */
        @ApiModelProperty(value = "工时", required = true, example = "8.5")
        private BigDecimal workingHours;
    }
}
